package com.aiwei.tdjk.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * Created by yanfeng on 2016/12/22
 */
@NoArgsConstructor
@AllArgsConstructor
public enum DeliveryStatusEnum {
    unlock(0,"操作填写"), lock(1,"报关锁定"),shangjian(2,"商检未报关"),refused(3,"仓库撤回"),
    report(4,"报关"),deleted(5,"已删除"),innerConfirm(5,"内贸确认");

    @Getter
    private Integer code;
    @Getter
    private String info;


    public static DeliveryStatusEnum getValue(Integer code) {
        final DeliveryStatusEnum[] values = DeliveryStatusEnum.values();
        for (DeliveryStatusEnum value : values) {
            if (value.getCode().equals(code)) {
                return value;
            }
        }
        return null;
    }
}
